/*
 * create:2016年4月24日 上午12:12:31
 * author:wangds  
 */
package com.cxkj.shop.utils;

import java.util.Collection;
import java.util.Map;

import com.cxkj.shop.model.grouppay.GroupPay;

/**
 * .
 * @author wangds
 *
 */
public abstract class GroupPayUtils extends AbstractBusinessUtils {


  public static boolean insertGroupPay(GroupPay entity) {
    return execUpdateSql("insGrouppay",entity);
  }
  
  public static boolean insertGroupPayWithMap(Map<String,Object> map) {
    return execUpdateSql("insGrouppayMap",map);
  }
  
  public static GroupPay selectGroupPayById(int id){
    return execSelectOne("selGrouppayById", id);
  }
  
  public static boolean deleteGroupPay(int grouppayId) {
    return execUpdateSql("delGrouppayById",grouppayId);
  }

  protected static boolean clearGroupPay(int id) {
    return execUpdateSql("clearGrouppayById",id);
  }
  

  public static Collection<GroupPay> selectActiveGroupPayList() {
    return execSelectList("selActiveGrouppay",null);
  }
  
}
